#!/usr/bin/env python3
"""
统一日志模块安装脚本
"""

from setuptools import setup, find_packages
from pathlib import Path

# 读取README文件
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text(encoding='utf-8')

# 读取版本信息
version = '1.0.1'

setup(
    name='unified-logger',
    version=version,
    author='开发者',
    author_email='developer@example.com',
    description='一个功能强大的Python统一日志模块',
    long_description=long_description,
    long_description_content_type='text/markdown',
    url='https://gitee.com/your-username/unified-logger',
    packages=find_packages(),
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.7',
        'Programming Language :: Python :: 3.8',
        'Programming Language :: Python :: 3.9',
        'Programming Language :: Python :: 3.10',
        'Programming Language :: Python :: 3.11',
        'Programming Language :: Python :: 3.12',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: System :: Logging',
    ],
    python_requires='>=3.7',
    install_requires=[
        # 核心依赖
    ],
    extras_require={
        'dev': [
            'pytest>=6.0',
            'pytest-cov>=2.0',
            'black>=21.0',
            'flake8>=3.8',
            'mypy>=0.910',
        ],
    },
    entry_points={
        'console_scripts': [
            'unified-logger-demo=接口示例:main',
        ],
    },
    include_package_data=True,
    zip_safe=False,
)